// pages/me/me.js
Component({
  properties:{
    user:{
      //定义类型
      type:Object,
      //定义默认值
      value:{}
    },
    doctorId:{
      //定义类型
      type:String,
      //定义默认值
      value:""
    }
  },
  data: {
    doctorId:''
  },
  methods:{
    changeInfo(){//我的信息
      console.log("自己的账号",this.properties.user.admin)
      var admin=this.properties.user.admin
      wx.navigateTo({
        url: '/pages/changeDoctor/changeDoctor?admin='+admin,
      })
    },
    changeadmin(){//我的账号
      var user=JSON.stringify(this.properties.user)
      wx.navigateTo({
        url: '/pages/changeAdmin/changeAdmin?user='+user,
      })
    },
    collectMe(){//收藏我的
      var doctorId=this.data.doctorId
      wx.navigateTo({
        url: '/pages/collectMe/collectMe?doctorId='+doctorId,
      })
    },
    appointMe(){//预约我的
      var doctorId=this.data.doctorId
      wx.navigateTo({
        url: '/pages/appointHistoryB/appointHistoryB?doctorId='+doctorId,
      })
    },
    diagnoseMe(){//就诊记录
      var doctorId=this.data.doctorId
      wx.navigateTo({
        url: '/pages/diagnoseHistoryB/diagnoseHistoryB?doctorId='+doctorId,
      })
    }
  }
  
  
})